#导包

import requests
#发送http请求，访问百度
# resp=requests.get(url="https://hmshop-test.itheima.net/index.php/Home/Goods/search.html?q=iPhone")
resp=requests.get(url="https://hmshop-test.itheima.net/index.php/Home/Goods/search.html",params={"q":"iphone"})
#打印相应结果
print(resp.text)